
<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- <link rel="icon" href="https://fastly.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.35/favicon.ico"> -->
    <!-- <link rel="canonical" href="https://getbootstrap.com/docs/3.4/examples/dashboard/"> -->

    <title>Dashboard Template for Bootstrap</title>

    <!-- Bootstrap core CSS -->
    <link href="/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/public/css/dashboard.css" rel="stylesheet">

  </head>

  <body>

    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          
          <a class="navbar-brand" href="#">Project name</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#">Dashboard</a></li>
            <li><a href="#">Settings</a></li>
            <li><a href="#">Profile</a></li>
            <li><a href="#">Help</a></li>
          </ul>
          <!-- <form class="navbar-form navbar-right">
            <input type="text" class="form-control" placeholder="Search...">
          </form> -->
        </div>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          <h1 class="page-header">三好学生</h1>
			
          <div class="row placeholders">
			  {{ each comments }}
            <div class="col-xs-6 col-sm-3 placeholder">
              <img src="{{ $value.img }}" width="200" height="200" class="img-responsive" alt="Generic placeholder thumbnail">
              <h4>{{ $value.name }}</h4>
              <span class="text-muted">{{ $value.zi }}</span>
            </div>
			{{ /each }}
          </div>
			<a class="btn btn-success" href="/students/new">添加学生</a>
          <h2 class="sub-header">学生信息</h2>
          <div class="table-responsive">
            <table class="table table-striped">
              <thead>
                <tr>
                  <th>学号</th>
                  <th>姓名</th>
                  <th>字</th>
                  <th>年龄</th>
                  <th>性别</th>
				  <th>爱好</th>
				  <th>操作</th>
                </tr>
              </thead>
              <tbody>
				  {{ each students }}
                <tr>
                  <td>{{ $value.id }}</td>
                  <td>{{ $value.name }}</td>
                  <td>{{ $value.zi }}</td>
                  <td>{{ $value.age }}</td>
                  <td>{{ $value.gender }}</td>
				  <td>{{ $value.like }}</td>
				  <td>
					  <a class="btn btn-info" href="/students/edit?id={{ $value.id }}">编辑</a>
					  <a class="btn btn-danger" href="/students/delete?id={{ $value.id }}">删除</a>
				  </td>
                </tr>
                {{ /each }}
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>

